package com.tl.boot.entity.common.form;

import com.tl.boot.common.enums.ResultEnum;
import com.tl.boot.common.exception.BaseException;
import com.tl.boot.entity.demo.form.Base.BaseForm;

/**
 * com.tl.boot.entity.common.form -- NeedUIdCommonForm
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/10/28 10:33
 */
public class NeedUIdCommonForm extends BaseForm {
    @Override
    public void checkParam() {
        if (this.getUserId() == null) {
            throw new BaseException(ResultEnum.REQUEST_PARAM_ILLEGAL);
        }
    }
}
